#ifndef MOVINGANIMATION_H
#define MOVINGANIMATION_H

#include "Animation.h"

class MovingAnimation : public Animation {
    offset_t dx, dy;
	bool flip_h, flip_v;
	delay_t	delay;
    bool continuous;
public:
    offset_t GetDx (void) const;
    void SetDx (offset_t v);
    offset_t GetDy (void) const;
    void SetDy (offset_t v);
	void SetFlipH(bool _flip_h) { flip_h = _flip_h; }
	bool GetFlipH(void) { return flip_h; };
	void SetFlipV(bool _flip_v) { flip_v = _flip_v; }
	bool GetFlipV(void) { return flip_v; };
    delay_t GetDelay (void) const;
    void SetDelay (delay_t v);
    bool GetContinuous (void) const;
    void SetContinuous (bool v);
    Animation* Clone (animid_t newId) const;
    MovingAnimation (offset_t _dx, offset_t _dy, delay_t _delay, bool c, animid_t _id);
};

#endif